
#include "3dMaterial.h"

//
int C3dMaterial::Reset()
{
	state		= 0;           // state of material
	id			= 0;              // id of this material, index into material array
	memset(name, 0, sizeof(name));

	attr		= 0;           // attributes, the modes for shading, constant, flat, 

	memset(&color, 0, sizeof(color));
	ka			= 0;
	kd			= 0;
	ks			= 0;
	power		= 0;

	memset(&ra, 0, sizeof(ra));
	memset(&rd, 0, sizeof(rd));
	memset(&rs, 0, sizeof(rs));

	memset(texture_file, 0, sizeof(texture_file));

	texture.DestroyImage();

	iaux1		= 0;
	iaux2		= 0;      // auxiliary vars for future expansion
	faux1		= 0;
	faux2		= 0;
	ptr			= NULL;

	return 0;

} // end Reset